package com.wk.unreal.yyzxserver.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class BedDetails implements Serializable {
    /*
    CREATE TABLE `beddetails` (
  `id` int NOT NULL AUTO_INCREMENT COMMENT '主键',
  `start_date` date DEFAULT NULL COMMENT '床位起始日期',
  `end_date` date DEFAULT NULL COMMENT '床位结束日期',
  `bed_details` varchar(255) DEFAULT NULL COMMENT '床位详情信息',
  `customer_id` int DEFAULT NULL COMMENT '顾客ID',
  `bed_id` int DEFAULT NULL COMMENT '床位ID',
  `is_deleted` int DEFAULT NULL COMMENT '逻辑删除标记（0：显示；1：隐藏）',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8mb3 ROW_FORMAT=DYNAMIC;
     */
   private Integer id;
   @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
   private LocalDateTime startDate;
   @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
   private LocalDateTime endDate;
   private String bedDetails;
   private Integer customerId;
   private Integer bedId;
   private Integer isDeleted;

   // 客户
   private String  customerName; // 客户姓名
   private Integer  customerAge; // 年龄
   private Integer  customerSex; // 性别  0：男  1：女
}
